<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
    <title>markdown</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div id="notebook">
        <aside class="sidebar">
            <button v-on:click="addNote">添加</button>
            <ul>
               <li v-for="note in notes">
                   {{note.title}}
               </li> 
            </ul>
        </aside>

        <section class="content">
            <textarea rows="20" v-model="content"></textarea>
        </section>
        
        <aside class="preview" v-html="preview">
         {{preview}}
        </aside>
    </div>
    
    <script src="script.js"></script>
</body>
</html>
